package tests.items;

import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import pages.HomePage;
import pages.TicketsPage;
import tests.CommonTestSteps;

/**
 * Created by WHOover on 07.07.2014.
 */
public class FindTwoItems extends CommonTestSteps {
    @DataProvider(name = "products")
    public Object[][] createData() {
        return new Object[][] {
                new String[] {"Acer Aspire V3-771G-33118G1TMaii (NX.MECEU.010)", "Acer Aspire E1-570G-53336G1TMnkk (NX.MESEU.015) Black"}
        };
    }

    @Test(dataProvider = "products")
    public void findElements(String prod1, String prod2) {
        login();
        findItem(prod1);
        findItem(prod2);
    }
}
